package com.zb.mapper;

import java.util.List;

import com.zb.entity.Department;

public interface DepartmentMapper{
	public List<Department> showRootNode();
	public List<Department> findChild(int id);
	public void addRootNode(Department dept);
	public void addChildNode(Department dapt);
	
	public void updateRootNode(Department dept);
	public void updateChildNode(Department dept);
	public void deleteNode(int id);
	public Department getDeptById(int id);
	public int hasChild(int id);
}